
package com.timber.util;

import pv.jfcx.*;


public class SLDefaultColumnManager extends SLColumnManager
{
  //  A set of default columns
  public static final int	DEFAULT_COL_1	= 100001;
  public static final int	DEFAULT_COL_2	= 100002;
  public static final int	DEFAULT_COL_3	= 100003;
  public static final int	DEFAULT_COL_4	= 100004;
  public static final int	DEFAULT_COL_5	= 100005;

  /**
   **  Singleton instance
   **/
  private static SLDefaultColumnManager	dcm = null;

  /**
   **  Returns the singleton instance - creating it if this is the
   **  first call.
   **/
  public static SLDefaultColumnManager getInstance()
  {
    if( dcm == null )
      dcm = new SLDefaultColumnManager();

    return dcm;
  }

  /**
   **  Private constructor - callers get the singleton instance thru
   **  the getInstance() call.
   **/
  private SLDefaultColumnManager()
  {
    //
    //  Populate our hash tables with the above default columns
    //

    //   ID               IdName              Display Label        Column Type         Width
    //   ---------------- ------------------  -------------------- ------------------- -----
    put( DEFAULT_COL_1,   "DEFAULT_COL_1",    "Column 1",          JPVTable.INTEGER,    10 );
    put( DEFAULT_COL_2,   "DEFAULT_COL_2",    "Column 2",          JPVTable.INTEGER,    10 );
    put( DEFAULT_COL_3,   "DEFAULT_COL_3",    "Column 3",          JPVTable.INTEGER,    10 );
    put( DEFAULT_COL_4,   "DEFAULT_COL_4",    "Column 4",          JPVTable.INTEGER,    10 );
    put( DEFAULT_COL_5,   "DEFAULT_COL_5",    "Column 5",          JPVTable.INTEGER,    10 );
  }
}
